package com.sddnytsh.body_buildingsystem.topic

/**
 * 社区帖子相关数据模型
 */

/**
 * 社区帖子数据模型
 */
data class CommunityPost(
    val id: Long,
    val userId: Long,
    val author: String?, // 可能为null
    val authorAvatar: String? = null, // 作者头像URL
    val title: String?, // 可能为null
    val content: String?, // 可能为null
    val likeCount: Int,
    val favoriteCount: Int,
    val commentCount: Int,
    val isLiked: Boolean,
    val isFavorited: Boolean,
    val createdAt: String?, // 可能为null
    val updatedAt: String? // 可能为null
)

/**
 * 创建帖子请求
 */
data class CommunityPostCreateRequest(
    val userId: Long,
    val title: String,
    val content: String
)
